<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:72:"D:\Wamp\wamp64\www\crab\public/../app/admin\view\column\column_edit.html";i:1531721496;s:75:"D:\Wamp\wamp64\www\crab\public/../app/admin\view\layout\edit_btn_group.html";i:1531444261;}*/ ?>
<form action="<?php echo url(); ?>" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>栏目名称</label>
              <span class=""></span>
              <input class="form-control" name="name" placeholder="请输入栏目名称" value="<?php echo (isset($info['name']) && ($info['name'] !== '')?$info['name']:''); ?>" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>分类</label>
              <span class="">（栏目分类）</span>
                <select name="father_id" class="form-control">
                     <if condition="$info eq '' or $info['father_id'] eq 0">
                        <option value="0"  selected="selected">--顶级栏目--</option>                        
                    <else />    
                    <?php if(is_array($column_category_list) || $column_category_list instanceof \think\Collection || $column_category_list instanceof \think\Paginator): $i = 0; $__LIST__ = $column_category_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>                  
                        <option value="<?php echo $vo['id']; ?>" <?php if(!(empty($info['id']) || (($info['id'] instanceof \think\Collection || $info['id'] instanceof \think\Paginator ) && $info['id']->isEmpty()))): if($info['father_id'] == $vo['id']): ?> selected="selected" <?php endif; endif; ?> >--<?php echo $vo['name']; ?>--</option>                  
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                     </if>
                </select>
            </div>
          </div>
            
        <div class="col-md-6">
            <div class="form-group">
              <label>栏目排序</label>
              <span class=""></span>
                <input class="form-control" name="sort" placeholder="请输入序号" value="<?php echo !empty($info)?$info['sort']|0:0; ?>" type="text">
            </div>
        </div>
            
      <div class="box-footer">
          
        <input type="hidden" name="id" value="<?php echo (isset($info['id']) && ($info['id'] !== '')?$info['id']:'0'); ?>"/>
        
        <button  type="submit" class="btn ladda-button ajax-post" data-style="slide-up" target-form="form_single">
    <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
</button>

<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
        
      </div>
        
      </div>
      </div>
</form>